<?php

namespace App\Event;

use Symfony\Contracts\EventDispatcher\Event;

/**
 * 日志描述事件-测试使用
 * Class LogDescriptionEvent
 * @package App\Event
 */
class LogDescriptionEvent extends Event {

    public const NAME = 'log.description';
    protected $description;

    public function __construct (string $description = '') {
        $this->description = $description;
    }

    public function getDescription () {
        return $this->description.rand(10000, 99999);
    }
}